@charset "utf-8";

/*计算公式编辑组件*/

#formula_edit_wrap{
    position:relative;
    background-color: #fff;
    padding:10px 15px;
}
#formula_buttons{
    padding: 2px 18px  10px 10px;
    text-align: right;
}
#formula_operation{
    position: relative;
}
/*左边*/
#formula_left{
    width: 212px;
    position:absolute;
    left:0;
    top:0;
}
#formula_left h1{
    line-height: 30px;
    font-size: 12px;
}

#formula_tree{
    width: 200px;
    height: 442px;
    border:1px solid #ccc;
    overflow-x: auto;
    overflow-y: scroll;
}
/*右边*/
#formula_right{
    height:500px;
    margin-left: 222px;
    margin-right: 0;
}
#formula_query{
    margin-top: 15px;
    padding: 0 20px;
    z-index: 1000000;
    position: relative;
    font-size: 12px;
}
#formula_query label{
    vertical-align:middle;
}
#formula_query .formula_text{
    height: 30px;
    border: 1px solid #bcbcbc;
    line-height: 30px;
    padding: 0 10px;
    border-radius: 3px;
}
#formula_query input[name='formulaOrder']{
    width:100px;padding-right: 0;
}
#formula_query #formulaCalculate{
    vertical-align: middle;
}
#formula_query .bootstrap-switch-handle-on,
#formula_query .bootstrap-switch-handle-off,
#formula_query .bootstrap-switch-label{
    font-size: 12px;
}

/*编辑器容器*/
#formula_editor{
    margin-top: 10px;
    padding: 0 20px;
}

/*
编辑区下的按钮和公式说明*/
#formula_eidtor_buttons{
    padding: 10px 20px;

}
#formula_eidtor_buttons .l{
    padding-top: 8px;
}
#formula_eidtor_buttons .shrbtn-primary{
    background-color: #F9F9F9;
    border: 1px solid #D0D0D0;
    color: #7B7474;
    text-align: center;
    display: inline-block;
    width: 30px;
    height: 24px;
    line-height: 23px;
    overflow: hidden;
    margin-bottom: 1px;
    margin-top: 1px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}
#formula_eidtor_buttons .shrbtn-primary:hover{
    background-color: #DEDEDE;
    border: 1px solid #AFAFAF;
}
#formula_eidtor_buttons .number-btn {
    margin-left: 1px;
}
#formula_eidtor_buttons .twochar-btn{
    margin-left: 1px;

}
#formula_eidtor_buttons .text-btn{
    width: 50px;

}
#formula_eidtor_buttons .zero-btn{
    width: 66px;

}
#formula_eidtor_buttons .colon-btn{
    width: 50px;

}

#formula_eidtor_buttons .r{
    line-height: 22px;
}
dl.formula_dec_wrap{
    margin-left: 400px;
    margin-top: 8px;
}
dl.formula_dec_wrap dt{
    overflow: hidden;
    position: relative;
    background-color: #fff;
    width: 155px;
    z-index: 3;
    margin-bottom: -1px;
}
dl.formula_dec_wrap dt span{
    border: 1px solid #ccc;
    float: left;
    width: 76px;
    text-align: center;
    height: 27px;
    line-height: 27px;
    cursor: pointer;
    font-size: 12px;
    background-color: #F9F9F9;
}
dl.formula_dec_wrap dt span.on{
    background-color: #FFFFFF;
    cursor:default;
    border-bottom: 1px solid #E4E4E4;
}
dl.formula_dec_wrap dt span:first-child{
    border-right: none;

}
dl.formula_dec_wrap dd{
    position:relative;
    z-index: 2;
}
#formula_eidtor_buttons #formula_dec{
    width: 100%;
    height: 74px;
    max-height: 74px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    padding: 5px;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    border-top-right-radius: 3px;
}
#formula_eidtor_buttons #formula_error{
    width: 100%;
    height: 74px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    padding: 5px;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 12px;
    color: red;
}

/*公式分组下拉框*/
#formula_Group_drop input.dayhr_drop_select_input{
    border:1px solid #ccc;
}

/**
公式管理组件
*/

#base_fromula_wrap{width:1000px;min-height:531px;margin-top: 44px;position: relative;}
#base_fromula_jqgrid_wrap{
    height: 608px;
}
#base_fromula_pager{

}
.base_fromula_jqgrid_buttons{
    position: absolute;
    left: 0;
    top: -49px;
}
.base_fromula_jqgrid_buttons .flat-button{
    width: 74px;
    text-align: center;
    padding: 0;
    margin: 0;
    height: 34px;
    line-height: 24px;
    overflow: hidden;
}
.base_fromula_jqgrid_more_buttons{
    display:inline-block;
    vertical-align: middle;
    border: 1px solid #bcbcbc;
    height: 32px;
    line-height: 30px;
    width: 78px;
    text-align: center;
    background-color: #fff;
    box-sizing: border-box;
    margin-left: 5px;
    cursor: pointer;
    position: relative;
    border-radius: 3px;
}
.base_fromula_jqgrid_more_buttons:hover{
    border-color: #fd9309;
}
.base_fromula_jqgrid_more_buttons .iconfont_dayhr_base{
    display: inline-block;
    vertical-align: middle;
    transition: all 0.2s;
}
.base_fromula_jqgrid_more_buttons:hover .iconfont_dayhr_base{
    transform: rotate(180deg);
}

.base_fromula_jqgrid_more_wrap{
    position: absolute;
    top: 31px;
    left: -1px;
    width: 100%;
    width: calc(100% + 2px);
    display: none;
}
.base_fromula_jqgrid_more_wrap li{
    border: 1px solid #fd9309;
    background-color: #fff;
    box-sizing: border-box;
    border-top: none;
    border-bottom-color: #eaeaea;
}
.base_fromula_jqgrid_more_wrap li:last-child{

    border-bottom-color: #fd9309;
}
.base_fromula_jqgrid_more_wrap li:hover{
    background-color:#B8B5B5;
}
.base_fromula_jqgrid_more_wrap li a{
    color: #797979;
    display: block;
}
.base_fromula_jqgrid_more_wrap li:hover a{
    color:#fff;
}

.base_fromula_jqgrid_more_buttons:hover .base_fromula_jqgrid_more_wrap{
    display:block;
}
